package com.sdhs.paas.gateway;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.sdhs.paas.authclient.EnableAceAuthClient;

/**
 * 容器服务控制台的网关服务，所有客户端请求从网关路由到具体的微服务。
 *
 * @author lpeng
 */
@SpringBootApplication
@EnableAutoConfiguration
@EnableFeignClients({"com.sdhs.paas.authclient"})
@EnableDiscoveryClient
@EnableAceAuthClient
@ComponentScan( value = {"com.sdhs.paas.gateway","com.sdhs.paas.authclient"})
public class PaasConfigGatewayApplication {
	protected static final Logger logger = LoggerFactory.getLogger(PaasConfigGatewayApplication.class);
    public static void main(String[] args) {
    	logger.info("SpringBoot开始加载");
        SpringApplication.run(PaasConfigGatewayApplication.class, args);
        logger.info("SpringBoot加载完毕");
    }
    

}